package com.tszs.biz;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tszs.dao.mapper.FriendshipLinkMapper;
import com.tszs.entity.FriendshipLink;
import com.tszs.entity.FriendshipLinkExample;

/**
 * @类名:CashManagementTableBiz
 * @类描述:友情链接
 * @创建时间: 2019-03-21 11:49:11
 * @author 王俊
 *
 */
@Service
public class FriendshipLinkBiz {
	@Autowired
	private FriendshipLinkMapper friendshipLinkMapper; 
	/**
	 * @方法名称:updateByExample
	 * @方法类描述:友情链接修改
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public int updateByExampleSelective(@Param("record") FriendshipLink record, @Param("example") FriendshipLinkExample example) {
		return friendshipLinkMapper.updateByExampleSelective(record, example);
	}
	/**
	 * @方法名称:selectByExamplePage
	 * @方法类描述:友情链接分页查询
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public List<FriendshipLink>selectByExamplePage(FriendshipLink example) {
		return friendshipLinkMapper.selectByExamplePage(example);
	}
	/**
	 * @方法名称:insertSelective
	 * @方法类描述:友情链接添加
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public int insertSelective(FriendshipLink example) {
		return friendshipLinkMapper.insertSelective(example);
	}
	/**
	 * @方法名称:selectByExample
	 * @方法类描述:友情链接查询
	 * @创建时间: 2019-03-21 11:49:11
	 * @author 王俊
	 *
	 */
	@Transactional
	public List<FriendshipLink>selectByExample(FriendshipLinkExample example) {
		return friendshipLinkMapper.selectByExample(example);
	}
}
